package com.demo.salary.payrollimplementation;

import com.demo.salary.payrolldomain.PaymentSchedule;

import java.time.LocalDate;

public class BiweeklySchedule implements PaymentSchedule {

    @Override
    public boolean isPayDate(LocalDate itsPayDate) {
        return false;
    }

    @Override
    public LocalDate getPayPeriodStartDate(LocalDate payDate) {
        return payDate.plusDays(-4 - 7);
    }
}
